home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / System / VersCheck2 / Libs / mmu / BuildMMUConfig.rexx < prev    next >
OS/2 REXX Batch file  |  2000-01-28  |  4KB  |  111 lines

  1. ;*************************************************************************
  2. ;** MMU Configuration file                                              **
  3. ;**                                                                     **
  4. ;** this file is read on startup by the mmu.library and used to modify  **
  5. ;** the pre-calculated or scanned MMU table                             **
  6. ;**                                                                     **
  7. ;** © 1999 THOR Software, Thomas Richter                                **
  8. ;*************************************************************************
  9.  
  10.  
  11.  
  12. ; the current version of the MMU library knows four commands that can
  13. ; be used in this file:
  14. ; CLEARTTX clears all or parts of the transparent translation registers
  15. ; ADDMEM   adds memory to the exec free list pool. BE WARNED, this command
  16. ;          does NOT modify the MMU tables, this must be done manually with
  17. ;          SETCACHEMODE
  18. ; SETCACHEMODE  defines the MMU tables.
  19. ; DESCRIPTORCACHEINHIBIT defines whether the data cache should be disabled
  20. ; for the MMU descriptors. It's usually OFF meaning the cache will remain
  21. ; enabled. This is fine for the mmu.library, but certain hacks might require
  22. ; an ON argument here. Note that this means more work for the library.
  23.  
  24.  
  25. ClearTTx        ;ignore all TTX registers if any. We don't need them
  26.  
  27. ;DescriptorCacheInhibit ON     ;make access to MMU descriptors cache inhibited
  28.  
  29.  
  30. ;Board specific setup follows here,
  31. ;generated by ScanToConfig 1.00 © 1999 THOR-Software
  32.  
  33. ;General memory setup follows.
  34. ;The following lines are a compatibility cludge for some P5 boards
  35. ;which enable the MMU prior to the 68040/68060 library and leave
  36. ;the memory in CACHEINHIBIT state. You may remove the following
  37. ;lines on all other machines most likely.
  38.  
  39. SetCacheMode from 0x76000000 size 0x03F80000 Copyback
  40. SetCacheMode from 0x00200000 size 0x00800000 Copyback
  41. SetCacheMode from 0x00000000 size 0x00200000 CacheInhibit NonSerial Imprecise
  42.  
  43. ;Memory setup end.
  44.  
  45.  
  46. ;In case you don't run the V40 68040 resp. 68060.library
  47. ;the following line will speed up the chip memory. It is
  48. ;not required otherwise.
  49. SetCacheMode 0x1000 Size 0x1FF000 CacheInhibit Imprecise NonSerial
  50.  
  51. SetCacheMode 0x200000 Size 0x800000 CopyBack Valid IOSpace
  52.  
  53. SetCacheMode 0xC00000 Size 0x180000 CacheInhibit Imprecise NonSerial Valid
  54.  
  55. SetCacheMode 0xE90000 Size 0x20000 CacheInhibit Valid IOSpace
  56.  
  57. SetCacheMode 0xEB0000 Size 0x50000 CacheInhibit Valid IOSpace
  58.  
  59. SetCacheMode 0xF00000 Size 0x21000 CacheInhibit Valid IOSpace
  60.  
  61. ;The following memory region should be left blank
  62. ;according to the CBM design rules. It isn't...
  63. SetCacheMode 0xF21000 Size 0x5F000 CacheInhibit Valid IOSpace
  64.  
  65. SetCacheMode 0x76000000 Size 0x14000 CopyBack Valid IOSpace
  66.  
  67. ;If you don't own a PPC, you may remove the next line:
  68. SetCacheMode 0x76000000 Size 0x14000 CopyBack  Valid
  69.  
  70. SetCacheMode 0x76014000 Size 0x2000 CacheInhibit Imprecise NonSerial Valid IOSpace
  71.  
  72. ;If you don't own a PPC, you may remove the next line:
  73. SetCacheMode 0x76014000 Size 0x2000 CacheInhibit Imprecise NonSerial  Valid
  74.  
  75. SetCacheMode 0x76016000 Size 0x52000 CopyBack Valid IOSpace
  76.  
  77. ;If you don't own a PPC, you may remove the next line:
  78. SetCacheMode 0x76016000 Size 0x52000 CopyBack  Valid
  79.  
  80. SetCacheMode 0x76068000 Size 0x3000 CacheInhibit Valid IOSpace
  81.  
  82. ;If you don't own a PPC, you may remove the next line:
  83. SetCacheMode 0x76068000 Size 0x3000 CacheInhibit  Valid
  84.  
  85. SetCacheMode 0x7606B000 Size 0x3F15000 CopyBack Valid IOSpace
  86.  
  87. ;If you don't own a PPC, you may remove the next line:
  88. SetCacheMode 0x7606B000 Size 0x3F15000 CopyBack  Valid
  89.  
  90. SetCacheMode 0x79F80000 Size 0x80000 CacheInhibit Valid IOSpace
  91.  
  92. ;If you don't own a PPC, you may remove the next line:
  93. SetCacheMode 0x79F80000 Size 0x80000 CacheInhibit  Valid
  94.  
  95. ;The following memory region should be left blank
  96. ;according to the CBM design rules. It isn't...
  97. SetCacheMode 0xFFF00000 Size 0x80000 CacheInhibit Valid IOSpace
  98.  
  99. ;The following memory region should be left blank
  100. ;according to the CBM design rules. It isn't...
  101. SetCacheMode 0xFFF80000 Size 0x78000 CacheInhibit Valid IOSpace
  102.  
  103.  
  104. ;Several P5 boards build a private MMU setup on boot
  105. ;using a kludge called the BOOT-MMU-Port. To run this
  106. ;kludge, the following external command is run from
  107. ;LIBS:mmu/ as all other external commands
  108. ScanMMUPort
  109. ;SetCacheMode FROM 0xFFFF8000 SIZE 0x00008000 VALID CACHEINHIBIT
  110.  
  111.